package behavioralPattern.visitor.example01;

import behavioralPattern.visitor.example01.product.Candy;
import behavioralPattern.visitor.example01.visitor.DiscountVisitor;

import java.time.LocalDate;

public class Client_01 {
    public static void main(String[] args) {
        Candy candy = new Candy("德芙巧克力", LocalDate.of(2022, 5, 1), 10.0);

        DiscountVisitor visitor = new DiscountVisitor(LocalDate.of(2023, 5, 1));

        visitor.visit(candy);
    }
}
